package model

type User struct {
	Id       int64  `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT"`
	CreateAt int64  `gorm:"column:create_at;not null"`
	ActiveAt int64  `gorm:"column:active_at;not null"`
	UserName string `gorm:"column:user_name;type:varchar(64);not null;default:''"`
	Password string `gorm:"column:password;type:varchar(256);not null;default:''"`
	Phone    string `gorm:"column:phone;type:varchar(128);not null;default:'';unique;key:phone"`
	profile  string `gorm:"column:profile;type:text"`
	Status   int    `gorm:"column:status;type:int(11);not null;default:0"`
}

type UserToken struct {
	Id    int64  `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT"`
	Phone string `gorm:"column:phone;type:varchar(128);not null;default:''"`
	Token string `gorm:"column:token;type:varchar(256);not null;default:''"`
}
